package com.opennews.openplatform.familyexpenseapi.dto.user

import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.opennews.openplatform.myspringbootcore.dto.IdentityDto
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.NotEmpty

@JsonIgnoreProperties(ignoreUnknown = true)
class UpdateUserRolesDto : IdentityDto() {
    @field:NotBlank(message = "username can't be blank")
    lateinit var username: String

    @field:NotEmpty(message = "Roles can't be empty")
    lateinit var fullRoles: List<Map<String, Any?>>
}